{template 'include/header'}
<div class="container container-fill">
	<style type="text/css">
	.clearfix:after {content: "";display: block;visibility: hidden;height: 0;clear: both;}
	body{background: #f2f2f2;margin: 0;padding: 0;}
	p{margin: 0;}
	.gy_d1{width: 100%;height: 46px;background: #fff;border-bottom: 1px solid #e7e7e7;position: fixed;top: 0;left: 0;z-index: 10;}
	.gy_d1l_img{width: 24px;float: left;margin-top: 11px;}
	.gy_d1l_spn{line-height: 46px;}
	.gy_d1l{width: 23%;float: left;margin-left: 2%}
	.gy_d1c{width: 50%;float: left;text-align: center;line-height: 46px;}
	.i_d_5_1{width: 100%;padding:6px 3%;background: #fff;line-height: 20px;border-bottom: 1px solid #e7e7e7;}
	.i_d_5_1 a{text-decoration: none;font-size: 14px;color: #000;}
	.i_d_5_1_l{float: left;width: 80%;color: #999;}
	.i_d_5_1_r{float: right;width: 20%;}
	.i_d_5_1_r p{width: 100%;height: 20px;line-height: 20px;text-align: center;color: #fff;background: #43ac43;font-size: 12px;border-radius: 20px;}
	.i_d_5_1_r1{float: right;width: 20%;}
	.i_d_5_1_r1 p{width: 100%;height: 20px;line-height: 20px;text-align: center;color: #fff;background: #ff760b;font-size: 12px;border-radius: 20px;}
	.i_d_5_1_r2{float: right;width: 20%;}
	.i_d_5_1_r2 p{width: 100%;height: 20px;line-height: 20px;text-align: center;color: #fff;background: #aaa;font-size: 12px;border-radius: 20px;}
	.gy1_p1{line-height: 30px;}
	</style>
</head>

<body>
<div class="gy_d1">
	<div class="gy_d1l" onClick="javascript:history.back(-1);"><img class="gy_d1l_img" src="<?php echo MODULE_URL;?>/template/mobile/img/gy_l.png"><span class="gy_d1l_spn">返回</span></div>
	<div class="gy_d1c">我的项目</div>
	<div class="clearfix"></div>
</div>
<div style="height:46px;"></div>
	<div id="fund-sort">	
		{loop $add_record $k}	
			<div class='i_d_5_1'>
			<?php if($k['verify']==true){?>
				<a href='javascript:;'>
			<?php }else{?>	
				<a href='javascript:;'>
			<?php }?>
					<p class="gy1_p1">{php echo mb_substr($k['pro_name'],0,12,'utf-8');}</p>
					<div class='i_d_5_1_l'>	
						{php echo date('Y-m-d H:i:s',$k['add_time']);}
					</div>
					<div class='<?php if($k['verify']==true){echo "i_d_5_1_r";}else{echo "i_d_5_1_r2";}?>'>
						<p><?php if($k['verify']==true){echo "审核通过";}else{echo "未审核";}?></p>
					</div>
					<div class='clearfix'></div>
				</a> 
			</div>
		{/loop}
	</div>	
	<div class="show-more" style="margin:0 !important; padding:10px  !important; background:#fff;"><a href="javascript:;" onclick="loadPage('1', 'fund-sort')" class="btn btn-default btn-block" id="pager" >浏览更多</a></div>
	<script type="text/javascript">
		function loadPage(pindex, container) {
			pindex = parseInt(pindex) + 1;
			$('#pager').html('正在加载数据...');
			$.get("{php echo $this->createMobileUrl('uadd',array());}", {'page' : pindex,'flag':'1'}, function(html){
				if(html!==""){
					$('#'+container).append(html);
					$('#pager').get(0).onclick = function(){
						loadPage(pindex, container);
					}
					$('#pager').html("浏览更多");
				}else{ 
					$('#pager').html("已经显示全部");
				}
			});
		}
	</script>	
	{template 'include/footer'}
	<div style="height:50px;"></div> 
</div>   
</body>
</html>
